const info = {
  "head": {
    "title": "某单据",
    "url": "/vue-admin-template/ik/data/order",
    "filedList": [
      {
        "filedCode": "id",
        "filedName": "ID",
        "type": "number",
        "visible": true,
        "edit": true,
        "defaultValue": 0,
        "precision": 2,
        "min": 0,
        "max": 20,
        "step": 1,
        "width": 6
      },
      {
        "filedCode": "code",
        "filedName": "编码",
        "type": "number",
        "visible": true,
        "edit": true,
        "defaultValue": 0,
        "precision": 1,
        "min": 10,
        "max": 20,
        "step": 1,
        "width": 6
      },
      {
        "filedCode": "name",
        "filedName": "名称",
        "type": "number",
        "visible": true,
        "edit": true,
        "defaultValue": 0,
        "precision": 0,
        "min": 20,
        "max": 30,
        "step": 5,
        "width": 6
      },
      {
        "filedCode": "isOpen",
        "filedName": "有效",
        "type": "switch",
        "visible": true,
        "edit": true,
        "defaultValue": 0,
        "trueLabel": "开启",
        "trueValue": 1,
        "trueColor": "#AAAAAA",
        "falseLabel": "关闭",
        "falseValue": 0,
        "falseColor": "",
        "width": 6
      },
      {
        "filedCode": "isUser",
        "filedName": "用户",
        "type": "switch",
        "visible": true,
        "edit": true,
        "defaultValue": 1,
        "trueLabel": "开启",
        "trueValue": 1,
        "trueColor": "",
        "falseLabel": "关闭",
        "falseValue": 0,
        "falseColor": "#AAAAAA",
        "width": 6
      },
      {
        "filedCode": "isAdmin",
        "filedName": "管理员",
        "type": "switch",
        "visible": true,
        "edit": true,
        "defaultValue": 0,
        "trueLabel": "开启",
        "trueValue": 1,
        "trueColor": "",
        "falseLabel": "关闭",
        "falseValue": 0,
        "falseColor": "#AAAAAA",
        "width": 6
      },
      {
        "filedCode": "groupCode",
        "filedName": "分组",
        "type": "select",
        "visible": true,
        "edit": true,
        "defaultValue": "001",
        "keyFiled": "code",
        "valueFiled": "name",
        "width": 6,
        "options": "[{\"code\": \"001\", \"name\": \"分组1\", \"rs1\": \"123\"}, {\"code\": \"002\", \"name\": \"分组2\", \"rs1\": \"456\"}]"
      },
      {
        "filedCode": "typeCode",
        "filedName": "类型",
        "type": "select",
        "visible": true,
        "edit": true,
        "defaultValue": "101",
        "keyFiled": "code",
        "valueFiled": "name",
        "width": 6,
        "options": "[{\"code\": \"101\", \"name\": \"类型1\", \"rs1\": \"123\"}, {\"code\": \"102\", \"name\": \"类型2\", \"rs1\": \"456\"}]"
      },
      {
        "filedCode": "entryTime",
        "filedName": "创建时间",
        "type": "date",
        "visible": true,
        "edit": true,
        "defaultValue": "Now(0,0,+10,0,0,0)",
        "format": "yyyy-MM-dd",
        "width": 6
      },
      {
        "filedCode": "updateTime",
        "filedName": "修改时间",
        "type": "datetime",
        "visible": true,
        "edit": true,
        "defaultValue": "Now(0,+1,-10,0,0,0)",
        "format": "yyyy-MM-dd hh:mm:ss",
        "width": 6
      },
      {
        "filedCode": "dictionaryCode",
        "filedName": "数据字典",
        "type": "popup",
        "visible": true,
        "edit": true,
        "popupUrl": "/vue-admin-template/ik/frame/clist",
        "popupExpression": "{\"code\": \"head.code\", \"name\": \"head.name\"}",
        "valueExpression": "{\"code\": \"head.dictionaryCode\", \"name\": \"head.rs2\"}",
        "width": 6
      }
    ]
  },
  "body" : [
    {
      "code" : "item1",
      "name": "子表1",
      "idFiled": "id",
      "url": "/vue-admin-template/ik/data/table",
      "filedList": [
        {
          "filedCode": "id", "filedName": "ID", "type": "text", "visible": true, "edit": false, "defaultValue": "",
          "minLength": 0, "maxLength": 20, "width" : 200
        },
        {
          "filedCode": "code", "filedName": "编码", "type": "text", "visible": true, "edit": true, "defaultValue": "",
          "minLength": 0, "maxLength": 20, "width" : 200
        },
        {
          "filedCode": "name", "filedName": "名称", "type": "text", "visible": true, "edit": true, "defaultValue": "",
          "minLength": 0, "maxLength": 20, "width" : 200
        },
        {
          "filedCode": "entryTime", "filedName": "创建时间", "type": "date", "visible": true, "edit": true, "defaultValue": "Now(0,0,+10,0,0,0)",
          "format":"yyyy-MM-dd", "width" : 200
        },
        {
          "filedCode": "modifyTime", "filedName": "修改时间", "type": "datetime", "visible": true, "edit": true, "defaultValue": "Now(0,0,+10,0,0,0)",
          "format":"yyyy-MM-dd hh:mm:ss", "width" : 200
        },
        {
          "filedCode": "number", "filedName": "数量", "type": "number", "visible": true, "edit": true, "defaultValue": 0,
          "precision": 0, "min": 10, "max": 30, "step": 1, "width" : 200
        },
        {
          "filedCode": "price", "filedName": "价格", "type": "number", "visible": true, "edit": true, "defaultValue": 0,
          "precision": 2, "min": 0, "max": 20, "step": 0.01, "width" : 200
        },
        {
          "filedCode": "isCheck", "filedName": "是否审核", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
          "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
        },
        {
          "filedCode": "isStart", "filedName": "是否开始", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
          "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
        },
        {
          "filedCode": "isEnd", "filedName": "是否结束", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
          "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
        },
        {
          "filedCode": "groupCode", "filedName": "分组", "type": "check", "visible": true, "edit": true, "defaultValue": ["001"],
          "keyFiled": "code", "valueFiled": "name",
          "options": "[{\"code\": \"001\", \"name\": \"分组1\", \"rs1\": \"123\"}, {\"code\": \"002\", \"name\": \"分组2\", \"rs1\": \"456\"}]",
          "width" : 300
        },
        {
          "filedCode": "typeCode", "filedName": "类型", "type": "radio", "visible": true, "edit": true, "defaultValue": "101",
          "keyFiled": "code", "valueFiled": "name",
          "options": "[{\"code\": \"101\", \"name\": \"类型1\", \"rs1\": \"123\"}, {\"code\": \"102\", \"name\": \"类型2\", \"rs1\": \"456\"}]",
          "width" : 300
        }
      ]
    },
    {
      "code" : "item2",
      "name": "子表2",
      "idFiled": "id",
      "url": "/vue-admin-template/ik/data/table",
      "filedList": [
        {
          "filedCode": "id", "filedName": "ID", "type": "text", "visible": true, "edit": false, "defaultValue": "",
          "minLength": 0, "maxLength": 20, "width" : 200
        },
        {
          "filedCode": "code", "filedName": "编码", "type": "text", "visible": true, "edit": true, "defaultValue": "",
          "minLength": 0, "maxLength": 20, "width" : 200
        },
        {
          "filedCode": "name", "filedName": "名称", "type": "text", "visible": true, "edit": true, "defaultValue": "",
          "minLength": 0, "maxLength": 20, "width" : 200
        },
        {
          "filedCode": "entryTime", "filedName": "创建时间", "type": "date", "visible": true, "edit": true, "defaultValue": "Now(0,0,+10,0,0,0)",
          "format":"yyyy-MM-dd", "width" : 200
        },
        {
          "filedCode": "modifyTime", "filedName": "修改时间", "type": "datetime", "visible": true, "edit": true, "defaultValue": "Now(0,0,+10,0,0,0)",
          "format":"yyyy-MM-dd hh:mm:ss", "width" : 200
        },
        {
          "filedCode": "number", "filedName": "数量", "type": "number", "visible": true, "edit": true, "defaultValue": 0,
          "precision": 0, "min": 10, "max": 30, "step": 1, "width" : 200
        },
        {
          "filedCode": "price", "filedName": "价格", "type": "number", "visible": true, "edit": true, "defaultValue": 0,
          "precision": 2, "min": 0, "max": 20, "step": 0.01, "width" : 200
        },
        {
          "filedCode": "isCheck", "filedName": "是否审核", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
          "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
        },
        {
          "filedCode": "isStart", "filedName": "是否开始", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
          "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
        },
        {
          "filedCode": "isEnd", "filedName": "是否结束", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
          "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
        },
        {
          "filedCode": "groupCode", "filedName": "分组", "type": "check", "visible": true, "edit": true, "defaultValue": ["001"],
          "keyFiled": "code", "valueFiled": "name",
          "options": "[{\"code\": \"001\", \"name\": \"分组1\", \"rs1\": \"123\"}, {\"code\": \"002\", \"name\": \"分组2\", \"rs1\": \"456\"}]",
          "width" : 300
        },
        {
          "filedCode": "typeCode", "filedName": "类型", "type": "radio", "visible": true, "edit": true, "defaultValue": "101",
          "keyFiled": "code", "valueFiled": "name",
          "options": "[{\"code\": \"101\", \"name\": \"类型1\", \"rs1\": \"123\"}, {\"code\": \"102\", \"name\": \"类型2\", \"rs1\": \"456\"}]",
          "width" : 300
        },
      ]
    }
  ]
}

module.exports = [
  {
    url: '/vue-admin-template/ik/frame/info',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: info
      }
    }
  }
]
